import request from '@/config/request.js';

// 查询商品销售流水列表
export const listGoodsSalesInfo = (params) => request.get('/goods/goodsSalesInfo/list', params)

export const listGoodsSalesInfoAll = (params) => request.get('/goods/goodsSalesInfo/listAll', params)

// 查询商品销售流水详细
export const getGoodsSalesInfo = (id) => request.get('/goods/goodsSalesInfo/' + id)

// 新增商品销售流水
export const addGoodsSalesInfo = (params) => request.post('/goods/goodsSalesInfo', params)

// 修改商品销售流水
export const updateGoodsSalesInfo = (params) => request.put('/goods/goodsSalesInfo', params)

// 删除商品销售流水
export const delGoodsSalesInfo = (id) => request.delete('/goods/goodsSalesInfo/' + id)